<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<div class="container-fluid">
<div class="row-fluid">
<div class="span2"></div>
<div class="span8">
<div class="row-fluid">
<div class="8">
<s:if test="hasFieldErrors()">
   			 <div class="alert alert-error span8">  
  		 		<s:fielderror><s:param>ticketnotavailable</s:param></s:fielderror>
  		  </div> 
<a href="viewadventure?adventureid=<s:property value="adventureid"/>&adventuretype=<s:property value="adventuretype"/>" Class="btn btn-success" >Go Back</a>
</s:if>
<s:else>
<h3>Order Summary</h3>
<ul class="thumbnails" >
              <li class="span12">
                <div class="thumbnail" style="box-shadow: 5px 5px 3px #888888;">
                    <table class="table table-striped">
              <thead>
                <tr>
                  <th>Ticket Type</th>
                  <th>Price</th>
                  <th>Fee</th>
                  <th>Quantity</th>
                  <th>Total</th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td><s:property value="tickettype" /></td>
                  <td><s:property value="ticketprice" /></td>
                  <td><s:property value="ticketfee" /></td>
                  <td><s:property value="selectedquantity" /></td>
                  <td><s:property value="totalprice" /></td>
                  </tr>
                  <tr>
                  <td></td>
                  <td></td>
                  <td></td>
                  <td><b>Total Amount Due</b></td>
                  <td><s:property value="totalprice" /></td>
                  </tr>
                  </tbody>
                  </table>
                  
                </div>
              </li>
</ul>
<s:form theme = "simple" cssClass="form-horizontal" action="payment" method="post" validate="true">
<h3>Billing Information</h3><hr />
<div class="control-group">
    <div class="controls">
<div class="row-fluid"><s:if test="hasActionErrors()">
   			 <div class="alert alert-error span4">  
  		 		<s:actionerror/>
  		  </div><br /><br />
</s:if></div>
</div>
</div>
                <p>
                <s:hidden name="tickettype" value="%{tickettype}"></s:hidden>
                <s:hidden name="ticketid" value="%{ticketid}"></s:hidden>
				<s:hidden name="totalprice" value="%{totalprice}"></s:hidden>
				<s:hidden name="selectedquantity" value="%{selectedquantity}"></s:hidden>
				<div class="control-group">
    			<label class="control-label" for="inputFullName">Full Name</label>
    			<div class="controls">
                <s:textfield name="fullname" cssClass="input-large"></s:textfield>
                </div></div>
                <div class="control-group">
   				 <label class="control-label" for="inputEmail">Email</label>
    			<div class="controls">
                <s:textfield name="email" cssClass="input-xlarge"></s:textfield>
                </div></div>
                <div class="control-group">
    <label class="control-label" for="inputPhone">Phone</label>
    <div class="controls">
                <s:textfield id="inputPhone" name="phone" cssClass="input-medium" maxlength="15"></s:textfield>
				</div></div>
				<div class="control-group">
    <label class="control-label" for="inputAddress">Address</label>
    <div class="controls">
                <s:textarea name="address" cssClass="input-xxlarge"></s:textarea>
                </div></div>
<div class="control-group">
    <div class="controls">                
<s:submit name="paynow" theme = "simple" cssClass="btn btn-large btn-success" value="Pay Now"></s:submit>                
                </div></div>
</s:form>
</s:else>
</div>
</div>
</div>
</div>
</div>
